﻿/*
 * 文件名称：
 * 程序员：wangyun
 * 创建时间：2008/06/16
 * 
 * 功能说明：数据字典选项值管理页面
 * 
 * 修改人员：
 * 
 * 修改日期：
 * 
 * 修改记录：
 */

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Whir.Common.WebHelper;

public partial class Whir_System_Module_Config_ChoiceManage : System.Web.UI.Page
{
    protected int TypeID = 0;
    protected void Page_Load(object sender, EventArgs e)
    {
        RoleHelper.IsLogin();    //登录判断

        TypeID = NetRequest.GetQueryInt("TypeID");
        ltTitle.Text = new Whir.BLL.Whir_ChoiceType().GetModel(TypeID).choiceTypeMark;
        if (!IsPostBack)
            BindData();
    }

    private void BindData()
    {
        Repeater1.DataSource = Whir.SQLServerDAL.DbHelperSQL.GetDataTable("*", "Whir_Choice", " choiceTypeID = " + TypeID, "");
        Repeater1.DataBind();
    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        Response.Redirect("Choice.aspx?Action=Add&TypeID=" + TypeID);
    }

    protected void btnCancel_Click(object sender, EventArgs e)
    {
        Response.Redirect("ChoiceTypeManage.aspx");
    }
}
